package com.yxw.yxnet_cd_center.customer_service.dto;

import com.yxw.yxnet_cd_center.common.enums.NoticeTypeEnum;
import com.yxw.yxnet_cd_center.customer_service.vo.MemberVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 消息发送DTO
 * @author liuxin
 * @date 2023.09.25
 */
@Data
@ApiModel(value="SendNoticeDTO", description="消息发送DTO")
public class SendNoticeDTO  implements Serializable {

    @NotNull(message = "消息类型不能为空")
    @ApiModelProperty(value = "消息类型")
    private NoticeTypeEnum type;

    @Valid
    @NotEmpty(message = "发送人员不能为空")
    @ApiModelProperty(value = "发送人员ID")
    List<MemberVo> userIds;

    @ApiModelProperty(value = "发送方式 1：短信 2：声音  为空则使用消息设置发送方式")
    Integer sendType;
}